{smcl}
{* 10apr2003}{...}
{hline}
help for {hi:mycox}{...}
{right:Example estimation command from the ML book, 2d ed.}
{hline}

{title:The Cox proportional hazards model}

{p 8 12 2}
{cmd:mycox}
	{it:depvar}
	[{it:varlist}]
	[{it:weight}]
	[{cmd:if} {it:exp}]
	[{cmd:in} {it:range}]
	[{cmd:,}
	{cmdab:fail:ure:(}{it:varname}{cmd:)}
	{cmdab:const:raints:(}{it:numlist}|{it:matname}{cmd:)}
	{cmdab:l:evel:(}{it:#}{cmd:)}
	{cmd:hr}
	{cmd:nolrtest}
	{cmdab:nolo:g}
	{it:maximize_options}
	]


{p 4 4 2}
{cmd:fweight}s are allowed; see help {help weights}.

{p 4 4 2}
{cmd:mycox} shares the features of all estimation commands; see help
{help estcom}.

{p 4 4 2}
Options that may be used when redisplaying results are:

{p 8 8 2}
	{cmd:hr}
	{cmdab:l:evel:(}{it:#}{cmd:)}


{title:Description}

{p 4 4 2}
{cmd:mycox} uses {cmd:ml} to fit a Cox proportional hazards model.


{title:Options}

{p 4 8 2}
{cmd:failure(}{it:varname}{cmd:)} identifies the failure indicator variable.
If {cmd:failure()} is not specified, every observation is assumed to end in a
failure; i.e. no censoring.

{p 4 8 2}
{cmd:constraints(}{it:numlist}|{it:matname}{cmd:)} specifies the
linear constraints to be applied for the model fit.
{cmd:constraints(}{it:numlist}{cmd:)} specifies the constraints by number.
{cmd:constraints(}{it:matname}{cmd:)} specifies a matrix that contains the
constraints.
Constraint numbers are defined using the
{cmd:constraint} command and are numbered; see help {help constraint}.  The
default is to perform unconstrained estimation.

{p 4 8 2}
{cmd:level(}{it:#}{cmd:)} specifies the confidence level, in percent,
for the confidence intervals of the coefficients; see help {help level}.

{p 4 8 2}
{cmd:hr} reports the estimated coefficients transformed to hazard ratios,
i.e., exp(b) rather than b.

{p 4 8 2}
{cmd:nolrtest} indicates that the model significance test should be a Wald
test instead of a likelihood-ratio test.  This prevents the constant-only
model to be fit.  Note that options resulting in robust variance estimates and
{cmd:constraints()} imply this option.

{p 4 8 2}
{cmd:nolog} suppresses the iteration log.

{p 4 8 2}
{cmd:noconstant} suppresses the constant term (intercept) in the model.

{p 4 8 2}
{it:maximize_options} control the maximization process; see help
{help maximize}.  You should never have to specify them.


{title:Also see}

{p 4 14 2}
On-line:  help for {help stcox}, {help constraint}
